package top.xcxdl.rural.common;

import lombok.Getter;
import lombok.ToString;

/**
 * 返回状态码
 * @author haowei
 */
@Getter
@ToString
public enum ResponseCode {

    SUCCESS(1,"SUCCESS"),
    FAILURE(-1,"FAILURE"),
    PARAM_ERR(-2,"param error"),
    AUTH_ERR(-3,"authentication error"),
    SERVER_ERR(-10,"server error"),
    WARN(0,"warning");

    private int code;
    private String msg;
    ResponseCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
